#include <bits/stdc++.h>
using namespace std;
struct point
{
	double x;
	double y;
};
int main()
{
	int n;
	cin >> n;
	point p[114];
	for(int i=1;i<=n;i++)
	{
		cin >> p[i].x >> p[i].y;
	}
	for(int i=1;i<=n;i++)
	{
		double distant=0;
		double mp=1;
		for(int j=1;j<=n;j++)
		{
			double temp=pow(pow(p[i].x-p[j].x,2)+pow(p[i].y-p[j].y,2),0.5);
			if(temp>distant)
			{
				distant=temp;
				mp=j;
			}
		}
		cout << mp << endl;
	}
	return 0;
}
